package de.bw.jeans.alarminfo.datatypes;

public class Hydrantendaten {

	private String hLatitude;
	private String hLongitude;
	private String hArt;
	private String hZuleitung;
	private String hQualitaet;
	private String hPosition;
	private String hBemerkung;
	private String hAbstand;
	
	public Hydrantendaten() {
		this.hLatitude  = "";
		this.hLongitude = "";
		this.hArt       = "";
		this.hZuleitung = "";
		this.hQualitaet = "";
		this.hPosition  = "";
		this.hBemerkung = "";
		this.hAbstand   = "";
	}
	
	public String gethLatitude() {
		return hLatitude;
	}

	public void sethLatitude(String hLatitude) {
		this.hLatitude = hLatitude;
	}

	public String gethLongitude() {
		return hLongitude;
	}

	public void sethLongitude(String hLongitude) {
		this.hLongitude = hLongitude;
	}

	public String gethArt() {
		return hArt;
	}

	public void sethArt(String hArt) {
		this.hArt = hArt;
	}

	public String gethZuleitung() {
		return hZuleitung;
	}

	public void sethZuleitung(String hZuleitung) {
		this.hZuleitung = hZuleitung;
	}

	public String gethQualitaet() {
		return hQualitaet;
	}

	public void sethQualitaet(String hQualitaet) {
		this.hQualitaet = hQualitaet;
	}

	public String gethPosition() {
		return hPosition;
	}

	public void sethPosition(String hPosition) {
		this.hPosition = hPosition;
	}

	public String gethBemerkung() {
		return hBemerkung;
	}

	public void sethBemerkung(String hBemerkung) {
		this.hBemerkung = hBemerkung;
	}

	public String gethAbstand() {
		return hAbstand;
	}

	public void sethAbstand(String hAbstand) {
		this.hAbstand = hAbstand;
	}
	
	public Boolean datenOk() {
		
		Boolean rC = true;
		try {
			Double latitude = Double.valueOf(this.hLatitude);
			Double longitude = Double.valueOf(this.hLongitude);
		}
		catch (Exception ex) {
			rC =false;
		}
		
		return rC;
	}
	
}
